package pack0621;

import java.util.Scanner;
public class DemoD {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.println("输入一个数");
        int number = scan.nextInt();

        int sum = 0;
        int a = 0;
        for (int i=1; i<=number;i++){
            a=a*10+number;
            sum+=a;
            System.out.println("数"+a+"总和"+sum);
        }
    }
}
